package com.deep.product.feign;

import com.deep.common.model.dto.SkuFullReductionTO;
import com.deep.common.model.dto.SpuBoundTO;
import com.deep.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 优惠券远程调用接口
 *
 * @author Deep
 * @date 2022/1/21
 */
@FeignClient(value = "mall-coupon")
public interface CouponFeignService {
    /**
     * 优惠券保存服务
     *
     * @param spuBoundTO 优惠信息实体类
     * @return 保存结果
     */
    @PostMapping("/coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundTO spuBoundTO);

    /**
     * 满减保存服务
     */
    @PostMapping("/coupon/skufullreduction/save")
    R saveSkuReduction(@RequestBody SkuFullReductionTO skuFullReductionTO);
}
